package com.itheima.Demo.Demo2;

public class Boy {
    public static void main(String[] args) {
        GirlThread gt = new GirlThread();
        gt.start();

        while (true) {
            synchronized ("abc") {
                if (GirlThread.money < 10) {
                    System.out.println("你你你你你你........");
                    break;
                }
            }
        }
    }
}
